package com.wedo.mall.activity.user;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.e.library.activity.EActivity;
import com.wedo.mall.R;

import butterknife.BindView;

public class ExchangeSuccessActivity extends EActivity {

    public static final String EXTRA_ORDER_SN = "order_sn";

    @BindView(R.id.tv_order_sn) TextView tv_order_sn;

    public static void toDetail(EActivity activity,String order_sn){
        Bundle bundle = new Bundle();
        bundle.putString(EXTRA_ORDER_SN,order_sn);
        activity.toActivity(ExchangeSuccessActivity.class,bundle);
    }

    @Override
    protected int layout() {
        return R.layout.activity_exchange_success;
    }

    @Override
    protected void onActivityCreated(Bundle state) {
        tv_order_sn.setText(getIntent().getStringExtra(EXTRA_ORDER_SN));
    }

}
